<div class="modal fade modal-md" id="modelContent">
	<div class="modal-dialog modal-md">
        <div class="modal-content"></div>
    </div>
</div>
<div class="portlet box green">
	<div class="portlet-title">
	    <div class="caption"><i class="fa fa-cog"></i>账房 > 单据管理 > 退款单 </div>
		<div class="tools">
			<a href="javascript:;" class="collapse right" data-original-title="" title=""> </a>
    	</div>
    	<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search"><i class="fa fa-search"></i> 查询 </a>
			<a href="javascript:;" class="btn white btn-sm search-reset"><i class="fa fa-eraser"></i> 清除 </a>
		</div>
	</div>
	<div class="portlet-body form">
	   	<form action="/orderRefund/list" class="form-horizontal" method="get" id="searchForm" onsubmit="return false">
			<div class="form-body">
				<div class="row">
					<div class="form-group">
						
						<div class="col-md-3">
							<label class="col-md-4 control-label">售后类型：</label>
							<div class="col-md-6">
						    	<select name="reOrderType" class="form-control">
									<option value="" selected="selected"> </option>
									<option value="REFUNDANDGOODS" #if($reOrderType=='REFUNDANDGOODS')  selected="selected" #end>退货退款</option>
									<option value="CHANGEGOODS"  #if($reOrderType=='CHANGEGOODS') selected="selected" #end>换货</option>
									<option value="REFUND"  #if($reOrderType=='REFUND') selected="selected" #end>仅退款</option>
									<option value="IN_REPAIR"  #if($reOrderType=='IN_REPAIR') selected="selected" #end>维修</option>
									<option value="CANCEL_ORDER"  #if($reOrderType=='CANCEL_ORDER') selected="selected" #end>取消订单</option>
								</select>
							</div>
						</div>
						
						<div class="col-md-3">
							<label class="col-md-4 control-label">支付类型：</label>
							<div class="col-md-6">
						    	<select name="settleWay" class="form-control">
						    		<option value="" selected="selected"> </option>
									<option value="CREDIT" #if($settleWay=='CREDIT') selected="selected" #end>信用支付</option>
									<option value="WECHAT" #if($settleWay=='WECHAT') selected="selected" #end>微信支付</option>
									<option value="ALIPAY" #if($settleWay=='ALIPAY') selected="selected" #end>支付宝支付</option>
									<option value="ONLINE_BANK" #if($settleWay=='ONLINE_BANK') selected="selected" #end>企业网银</option>
									<option value="PAY_OFFLINE" #if($settleWay=='PAY_OFFLINE') selected="selected" #end>线下支付</option>
								</select>
							</div>
						</div>
						
						
					</div>
					<div class="form-group">
						<div class="col-md-3">
							<label class="col-md-4 control-label">所属企业：</label>
							<div class="col-md-8">
					    		<input type="text" class="form-control" name="company" value="$!company">
							</div>
						</div>		
						<div class="col-md-3">
							<label class="col-md-4 control-label">退款单号：</label>
							<div class="col-md-8">
						    	<input type="text" class="form-control" name="id" value="$!id">
							</div>
							
							
						
							
							
							
							
						</div>
						<div class="col-md-3">
							<label class="control-label col-md-4">退款时间：</label> 
							<label class="col-md-8">
								<input class="form-control" type="text" name="startTime" id="startTime" value="$!startTime" readonly>
								<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
							</label>
						</div>
						<div class="col-md-3">
							<label class="control-label col-md-2">至：</label> 
							<label class="col-md-8">
								<input class="form-control" type="text" name="endTime" id="endTime" value="$!endTime" readonly>
								<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
							</label>
						</div>
					</div>
	    		</div>
			</div>
		</form>
	</div>
</div>

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions">
			<a onclick="javascript:alert('功能完善中...');" class="btn white btn-sm" data-toggle="modal"><i class="fa fa-cloud-download"></i> 导出 </a>
		</div>
    </div>
    <div class="portlet-body">
		<div class="tabbable-line ">
			<div class="tab-content">
				<div class="tab-pane active form">
					<div class="table-container table-scrollable">
						<table class="table table-bordered table-hover icheck-table" id="productTable">
							<thead>
									<tr>
					  		 			<th>退款单号</th>
					  		 			<th>退款总额(￥)</th>
					  		 			<th>订单号</th>
					  		 			<th>支付类型</th>
					  		 			<th>售后类型</th>
					  		 			<th>收款会员</th>
					  		 			<th>所属企业</th>
					  		 			<th>退款时间</th>
										<th class="col-md-2">操作</th>
									</tr>
								</thead>
								<tbody>
								#foreach($item in $pageOrderRefund.result)
					 				<tr>  
									    <td>$!item.id</td>
									    <td>$!item.refundMoney</td>
									    <td>$!item.orderId</td>
									    <td>$!item.settleWay.name</td>
									    <td>$!item.reOrderType.name</td>
									    <td>$!item.username</td>
									    <td>$!item.company</td>
									    <td>$!item.createDate</td>
						    			<td>
											<a class="btn green btn-outline btn-sm ajaxify" href="/orderRefund/detail?id=$!item.id">
												<i class="fa fa-eye"></i>	详情
											</a>
									    </td>		  			
					 				</tr>
								#end
								</tbody>
							</table>
					</div>
					#set($page= $pageOrderRefund)
					#set($pageUrl="/orderRefund/list?$!queryString&pageNo=")
					#parse("_page.htm")
				</div>
				<div>金额总计：$!sum</div>
			</div>
			
		</div>
    </div>
</div>
<script type="text/javascript">
     $("input[name=id]").focus();
</script>
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>